package com.hairline.controller;

import com.hairline.bean.vo.BaseRespVo;
import com.hairline.bean.vo.LogListVO;
import com.hairline.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LogController {

    @Autowired
    LogService logService;

    @RequestMapping("admin/log/list")
    public BaseRespVo logList(Integer page, Integer limit, String name, String sort, String order) {
        LogListVO logListVO = logService.logList(page, limit, name, sort, order);
        return BaseRespVo.ok(logListVO);
    }

}
